package cn.yang.trigger.api.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @version v1.0
 * @ClassName: cn.yang.trigger.api.dto
 * @Description: TODO
 * @Author: YJ
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SkuProductResponseDTO {
    /**
     * 商品sku
     */
    private Long sku;
    /**
     * 活动ID
     */
    private Long activityId;
    /**
     * 活动个人参与次数ID
     */
    private Long activityCountId;
    /**
     * 库存总量
     */
    private Integer stockCount;
    /**
     * 剩余库存
     */
    private Integer stockCountSurplus;
    /**
     * 商品金额（积分）
     */
    private BigDecimal productAmount;

    private ActivityCount activityCount;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class ActivityCount {
        /**
         * 总次数
         */
        private Integer totalCount;
        /**
         * 月次数
         */
        private Integer monthCount;
        /**
         * 日次数
         */
        private Integer dayCount;
    }
}
